package com.example.gl_project4;

import android.renderscript.Matrix4f;

public class GeometryTransform {
	private MatrixStack modelView;
	private MatrixStack projection;
		
	public void SetMatrixStacks(MatrixStack modelView, MatrixStack projection) {
		this.modelView = modelView;
		this.projection = projection;
	}
	
	public Matrix4f getModelViewProjectionMatrix() {
		Matrix4f result = new Matrix4f();
		result.load(projection.getLast());
		result.multiply(modelView.getLast());
		
		return result;
	}

	public MatrixStack getModelView() {
		return modelView;
	}

	public void set_modelView(MatrixStack modelView) {
		this.modelView = modelView;
	}

	public MatrixStack getProjection() {
		return projection;
	}

	public void set_projection(MatrixStack projection) {
		this.projection = projection;
	}
}
